.detail {
  position: relative;

  //加载动画
  .loading {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    z-index: 100;
  }

  //中间的图片
  .detail-banner {
    position: relative;
    height: 340px;
    background-color: #fff;
    padding: 20px;
    margin: 20px 0;

    .detail-banner-little-img-box {
      position: absolute;
      width: 400px;
      height: 270px;
      background-color: #fff;
      padding: 20px;
      top: 185px;
      right: 100px;

      .detail-banner-little-img {
        background-position: center center;
        background-size: cover;
        width: 100%;
        height: 100%;
      }
    }

    .detail-banner-border {
      border: 1px solid #fff;
      width: 100%;
      height: 100%;
      overflow: hidden;

      .detail-banner-img {
        background-position: center center;
        background-size: cover;
        width: 100%;
        height: 100%;
        filter: blur(12px);
        object-fit: cover;
        transform: scale(1.2);

      }
    }
  }

  //标题和文章的信息
  .detail-title {
    h1 {
      font-size: 40px;
      font-weight: 700;
    }
  }

  //文章信息 点赞 事件 等
  .detail-message {
    display: flex;
    align-items: center;
    color: #6b5657;
    font-size: 16px;

    .hr {
      margin: 0 10px;
      height: 14px;
      width: 1px;
      background-color: #e7e8eb;
    }
  }

  //分割线
  .detail-hr {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background-color: #e7e8eb;
  }

  .detail-left {
    background-color: #fff;

    //文章点赞
    .article-support {
      position: absolute;
      top: 0;
      left: -70px;
      width: 50px;
      height: 100px;
      background-color: #fff;
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      align-items: center;

      .good,
      .no-good {
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        background-color: #ccc;
      }
    }

    //文章内容
    .detail-content {
      border-radius: 5px;
      padding: 20px 50px;
      line-height: 2rem;

      img {
        max-width: 100%;
      }

      //表格样式
      table {
        border: 1px solid #dddddd;
        text-align: center;
        border-collapse: collapse;
        color: #4f4f4f;
        width: 100%;

        td,
        th {
          border: 1px solid #dddddd;
          padding: 10px 5px;
        }

        thead {
          tr {
            background-color: #f7f7f7;

            th {
              font-weight: 700;
            }
          }
        }

        tbody {
          tr {
            &:nth-child(2n) {
              background-color: #f7f7f7;
            }
          }
        }
      }

      li {
        margin-left: 15px;
      }

      h1,
      h2,
      h3,
      h4,
      h5{
        
        padding: 8px;
        font-weight: 700;
        
      }
      h1{
        font-size: 150%;
        padding: 8px 25px;
        position: relative;
        border-bottom: 1px solid #eaecef;
        &::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          height: 100%;
          width: 6px;
          border-right: 8px solid #007bff;
          box-shadow: 1px 0 12px 0 #91d5ff;
          border-top-right-radius: 5px !important;
          border-bottom-right-radius: 5px;
        }
      }
    }
    h2{
      font-size: 125%;
    }
    h3,
    h4,
    h5,
    h6{
      font-size: 110%;
    }

    //文章结束
    .article-end {
      margin-top: 50px;
      height: 150px;
      background: url('./imgs/end.png') no-repeat center center;
      background-size: cover;
    }

    .comment-edit {
      background-color: #fff;
    }

    //文章评论
    .article-comment {
      padding: 0 70px 50px 70px;
      background-color: #fff;
      color: #595959;

      .article-edit {
        margin-top: 50px;
      }

      .comment-title {
        padding: 10px 0;
        border-bottom: 1px solid #eaecef;
      }

    }
  }

  //文章目录
  .detail-right {
    position: relative;
    min-height: 500px;
    padding-left: 20px;

    .detail-catalog {
      .article-nav {
        height: 540px;
        overflow: auto;
        .detail-catalog-title {
          padding: 15px;
          background-color: #fff;
          color: #007bff;
          border-bottom: 1px solid #e7e8eb;
          font-size: 20px;
        }

        .markdownNav {
          background-color: #fff;
          
          .title-anchor {
            border-bottom: 1px solid #e7e8eb;
            margin: 0;
            padding: 10px 15px;
            font-size: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          .title-level1{
            font-size: 120%;
            font-weight: 700;
          }
          .title-level2{
            font-size: 100%;
            font-weight: 500;
          }
          .title-level3{
            font-size: 85%;
          }
          .title-level4{
            font-size: 70%;
          }
          .title-level5{
            font-size: 60%;
          }
        }
      }

    }
  }

  //代码高亮
  pre.hljs {
    padding: 8px 2px;
    border-radius: 5px;
    position: relative;

    ol {
      list-style: decimal;
      margin: 0;
      margin-left: 40px;
      padding: 0;

      li {
        list-style: decimal-leading-zero;
        position: relative;
        padding-left: 10px;

        .line-num {
          position: absolute;
          left: -40px;
          top: 0;
          width: 40px;
          height: 100%;
          border-right: 1px solid rgba(0, 0, 0, .66);
        }
      }
    }

    b.name {
      position: absolute;
      top: 2px;
      right: 12px;
      z-index: 10;
      color: #999;
      pointer-events: none;
    }
  }

}

@media screen and (max-width: 767px) {
  .detail {
    width: 100%;

    .detail-banner {
      display: none;
      // .detail-banner-little-img-box {
      //   display: none;
      // }

      // .detail-banner-img {
      //   filter: blur(0) !important;
      // }
    }

    .detail-hr {
      margin: 0;
      margin-top: 30px;
    }

    .detail-title h1 {
      margin-top: 25px;
      text-align: center;
      font-size: 25px;
    }

    .detail-message {
      font-size: 12px;
      justify-content: center;

      .good {
        display: none;
      }

      .hr:nth-of-type(n+4) {
        display: none;
      }
    }

    .detail-left {
      .detail-content {
        padding: 20px 10px;
        font-size: 10px;

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
          font-size: 12px;
        }


      }

      .article-end {
        margin-top: 35px;
        height: 50px;
        // background: url('./imgs/end.png') no-repeat center center;
        // background-size: cover;
      }

      //手机端评论
      .article-comment {
        padding: 0px 30px;
        background-color: #fff;
        color: #595959;

        .article-edit {
          margin-top: 50px;
        }

        .comment-text {
          .ant-form-item {
            margin: 1px;
          }

          .ant-form-item-control-input-content {
            display: flex;
            flex-direction: column;
          }

          input {
            margin: 5px 0;
          }
        }

        .comment-title {
          padding: 10px 0;
          border-bottom: 1px solid #eaecef;
        }

      }
    }



  }
}

@media screen and (min-width: 768px) and (max-width:991px) {
  .detail {
    width: 750px;

    .detail-banner {
      .detail-banner-little-img-box {
        display: none;
      }

      .detail-banner-img {
        filter: blur(0) !important;
      }
    }
  }
}

@media screen and (min-width: 992px) and (max-width:1199px) {
  .detail {
    width: 970px;
  }
}

@media screen and (min-width: 1200px) {
  .detail {
    width: 1200px;
  }
}